﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace LimaLims.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class updateuserteam : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<long>(
                name: "TeamId",
                table: "SysUser",
                type: "bigint",
                nullable: true,
                comment: "班组Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldComment: "班组Id");

            migrationBuilder.AlterColumn<int>(
                name: "ChromId",
                table: "ChromTest",
                type: "int",
                nullable: false,
                comment: "色谱ID(区分是否上传)",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "色谱机ID(区分是否上传)");

            migrationBuilder.UpdateData(
                table: "SysTenant",
                keyColumn: "Id",
                keyValue: 142307070918780L,
                column: "CreatedTime",
                value: new DateTime(2025, 1, 3, 15, 39, 9, 708, DateTimeKind.Local).AddTicks(423));

            migrationBuilder.UpdateData(
                table: "SysUser",
                keyColumn: "Id",
                keyValue: 142307070910551L,
                columns: new[] { "CreatedTime", "Name" },
                values: new object[] { new DateTime(2025, 1, 3, 15, 39, 9, 709, DateTimeKind.Local).AddTicks(1625), "超级管理员" });

            migrationBuilder.UpdateData(
                table: "Team",
                keyColumn: "Id",
                keyValue: 242307070910559L,
                column: "CreatedTime",
                value: new DateTime(2025, 1, 3, 15, 39, 9, 800, DateTimeKind.Local).AddTicks(5445));
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<long>(
                name: "TeamId",
                table: "SysUser",
                type: "bigint",
                nullable: false,
                defaultValue: 0L,
                comment: "班组Id",
                oldClrType: typeof(long),
                oldType: "bigint",
                oldNullable: true,
                oldComment: "班组Id");

            migrationBuilder.AlterColumn<int>(
                name: "ChromId",
                table: "ChromTest",
                type: "int",
                nullable: false,
                comment: "色谱机ID(区分是否上传)",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "色谱ID(区分是否上传)");

            migrationBuilder.UpdateData(
                table: "SysTenant",
                keyColumn: "Id",
                keyValue: 142307070918780L,
                column: "CreatedTime",
                value: new DateTime(2024, 12, 23, 12, 15, 44, 631, DateTimeKind.Local).AddTicks(1812));

            migrationBuilder.UpdateData(
                table: "SysUser",
                keyColumn: "Id",
                keyValue: 142307070910551L,
                columns: new[] { "CreatedTime", "Name" },
                values: new object[] { new DateTime(2024, 12, 23, 12, 15, 44, 632, DateTimeKind.Local).AddTicks(4446), null });

            migrationBuilder.UpdateData(
                table: "Team",
                keyColumn: "Id",
                keyValue: 242307070910559L,
                column: "CreatedTime",
                value: new DateTime(2024, 12, 23, 12, 15, 44, 720, DateTimeKind.Local).AddTicks(7815));
        }
    }
}
